package com.chey.dao;

import com.chey.pojo.apot.APOT;
import com.chey.pojo.META;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author JanYao
 * @version 0.1
 */

public interface ApueDao {
        @Insert("insert into " +
                "MSG_BASE_APUE(META_SNDR,META_RCVR,META_SEQN,META_DDTM,META_TYPE,META_STYP,APOT_CODE,APOT_FRCD,APOT_APAT,APOT_CNNM,APOT_ENNM,APOT_AISO,APOT_APSN) " +
                "values(#{meta.sender},#{meta.receiver},#{meta.sequence},#{meta.dTime},#{meta.bType},#{meta.sType},#{apot.code},#{apot.msg},#{apot.apart},#{apot.chineseName},#{apot.englishName},#{apot.flag},#{apot.sortName})")
        public Integer add(@Param("meta") META meta, @Param("apot") APOT apot);
}
